<template>
  <div class="app-container">
    <el-form ref="form" :model="data" :inline="true" size="mini" label-width="125px">
      <el-row :gutter="24" class="form-item-group">
        <el-col :span="6">
          <el-form-item size="mini" label="供应商编码：">
            <el-input v-model="data.supplierCode" disabled />
          </el-form-item>
        </el-col>
        <el-col :span="6">
          <el-form-item size="mini" label="供应商名称：">
            <el-input v-model="data.supplierName" disabled />
          </el-form-item>
        </el-col>
        <el-col :span="6">
          <el-form-item size="mini" label="联系人：">
            <el-input v-model="data.contactName" disabled />
          </el-form-item>
        </el-col>
        <el-col :span="6">
         <el-form-item size="mini" label="联系人电话：">
           <el-input v-model="data.contactPhone" disabled />
         </el-form-item>
        </el-col>
      </el-row>
      <el-row :gutter="24" class="form-item-group">
        <el-col :span="6">
          <el-form-item size="mini" label="营业执照号：">
            <el-input v-model="data.bizLicenceNo" disabled />
          </el-form-item>
        </el-col>
        <el-col :span="6">
          <el-form-item size="mini" label="联系人邮件：">
            <el-input v-model="data.contactEmail" disabled />
          </el-form-item>
        </el-col>
        <el-col :span="6">
          <el-form-item size="mini" label="银行账户：">
            <el-input v-model="data.bankAccount" disabled />
          </el-form-item>
        </el-col>
        <el-col :span="6">
          <el-form-item size="mini" label="开户行：">
            <el-input v-model="data.bankName" disabled />
          </el-form-item>
        </el-col>
        </el-row>
        <el-row :gutter="24" class="form-item-group">
        <el-col :span="6">
          <el-form-item size="mini" label="网站地址：">
            <el-input v-model="data.webSite" disabled />
          </el-form-item>
        </el-col>
        <el-col :span="6">
          <el-form-item label="法人：">
            <el-input v-model="data.owner"  disabled />
          </el-form-item>
        </el-col>
        <el-col :span="6">
          <el-form-item size="mini" label="微信号：">
            <el-input v-model="data.wechatId"  disabled />
          </el-form-item>
        </el-col>
        <el-col :span="6">
          <el-form-item label="注册资金：">
            <el-input v-model="data.capital" type="number" disabled />
          </el-form-item>
        </el-col>
        
        </el-row>
        <el-row :gutter="24" class="form-item-group">
          <el-col :span="6">
            <el-form-item label="合同过期日期：">
              <template slot-scope="scope">
                <span>{{ parseTime(data.supplierContractExpDate, '{y}-{m}-{d} ') }}</span>
              </template>
              <!-- <el-date-picker
                v-model="data.supplierContractExpDate"
                type="date"
                placeholder="选择日期"
                disabled
              /> -->
            </el-form-item>
          </el-col>
        <el-col :span="6">
          <el-form-item size="mini" label="开业时间：">
            <template slot-scope="scope">
              <span>{{ parseTime(data.openDate, '{y}-{m}-{d} ') }}</span>
            </template>
            <!-- <el-input v-model="data.openDate" type="number" disabled /> -->
          </el-form-item>
        </el-col>
        
        <el-col :span="6">
          <el-form-item label="入驻时间：">
            <template slot-scope="scope">
              <span>{{ parseTime(data.enrollDate, '{y}-{m}-{d} ') }}</span>
            </template>
          </el-form-item>
        </el-col>
      </el-row>
    </el-form>
  </div>
</template>

<script>
import appConstant from '@/constant/AppConstant'

export default {
  props: {
    data: {
      type: Object,
      default: undefined
    }
  },
  data() {
    return {
      selects: {
        paymentTypeList: appConstant.paymentTypeList
      }
    }
  },
  created() {
    this.initForm()
    this.loadSelects()
  },
  methods: {
    initForm() {
      // 初始化起运地、目的地数据
      if (this.data.departure) {
        this.data.departureIdList = this.data.departure.split(',')
      }
      if (this.data.destination) {
        this.data.destinationIdList = this.data.destination.split(',')
      }
    },
    loadSelects() {}
  }
}
</script>

<style rel="stylesheet/scss" lang="scss" scoped>
</style>
